﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="muahang.aspx.cs" Inherits="muahang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    
        <div id="sanpham">
            <div id="sp_main">
                <asp:Repeater ID="repeat" runat="server">
                 <ItemTemplate>
                <label><%#Eval("Tensanpham")%></label>
                <div id="sp_hinhanh">
                    <img id="sanpham_anh" src='<%#Eval("URL") %>' />
                </div>
                <div id="sp_chitiet">
                    <div id="p1">
                        <p>Tinh trang :<span>Hàng mới</span></p>
                        <p>Thời gian bán :<span>Không giới hạn</span></p>
                    </div>
                    <div id="p2">
                        <p>Giá bán : <span class="giatien"><%#Eval("Giasanpham") %>VNĐ</span></p>
                        <p>Phí vận chuyển :<span>40.000 VNĐ</span></p>
                    </div>
                    </ItemTemplate>
                    </asp:Repeater>
                    <div id="p3">
                        <p>Số lượng mua <asp:TextBox runat="server" ID="sp_soluong"></asp:TextBox></p>
                        <input type="button" id="sp_mua" value="Đặt mua" runat="server" onserverclick="datmua"/>
                        <asp:ImageButton ID="sp_addgiohang" runat="server" ImageUrl="images/cart1.png" OnClick="addgiohang" />
                    </div>
                 </div><!--end div sp_chitiet-->
                <div class="clear"></div>
            </div>
            <div id="sp_thongtin">
                <table>
                    <tr>
                        <td><a href="#sp_ndtb">Nội dung tin bán</a></td>
                        <td><a href="#sp_tssp">Thông số sản phẩm</a></td>
                        <td><a href="#sp_hdmh">Hướng dẫn mua hàng</a></td>
                        <td><a href="#sp_bl">Bình luận</a></td>
                    </tr>
                </table>
                <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                <div id="sp_ndtb">
                    <h2>Nội dung tin bán</h2>
                    <p><%#Eval("Mota") %></p>
                </div>
                </ItemTemplate>
                </asp:Repeater>
				<div id="binh_luan">
                    <asp:TextBox runat="server" TextMode="MultiLine" ID="comment"></asp:TextBox>
                    <asp:LinkButton ID="Guibinhluan" runat="server" OnClick="Thembl">Gửi</asp:LinkButton>
				</div>
                <asp:Repeater ID="repeater_binhluan" runat="server">
                <ItemTemplate>
                <div class="show_binhluan">
                    <h2><%#Eval("Username") %></h2>
                    <p><%#Eval("Noidung") %></p>
                </div>
                </ItemTemplate>
                </asp:Repeater>
                
            </div>
        </div>
   
</asp:Content>

